import config from "@/config";
import http from "@/utils/request";

export default {
	page: {
		url: `${config.API_URL}/prodarchive/pages/`,
		name: "分页",
		get: async function(params){
			return await http.get(this.url, params);
		}
	},
	list: {
		url: `${config.API_URL}/prodarchive/list/`,
		name: "列表",
		get: async function(params){
			return await http.get(this.url, params);
		}
	},
	model: {
		url: `${config.API_URL}/prodarchive/`,
		name: "查询一条",
		get: async function(params){
			return await http.get(this.url + params);
		}
	},
	detail: {
		url: `${config.API_URL}/prodarchive/details/`,
		name: "查询明细",
		get: async function(params){
			return await http.get(`${this.url}?id=${params}`);
		}
	},
}
